package org.yocastlong;

import org.apache.ibatis.parsing.GenericTokenParser;
import org.apache.ibatis.parsing.TokenHandler;

/**
 * @author 朱海龙
 * 2025/5/20 12:58
 */
public class JustRun {


    public static void main(String[] args) {
        GenericTokenParser genericTokenParser = new GenericTokenParser("#{", "}", new TokenHandler() {
            @Override
            public String handleToken(String content) {
                System.out.println("handleToken: " + content);
                return "?";
            }
        });

        String parse = genericTokenParser.parse("select * from user where id = #{id}");
        System.out.println(parse);
    }
}
